#include<stdio.h>


int main()
{
	int counter=0, x=0,y=0;
	scanf("%d",&counter);
	while(counter>0 && counter<15)
	{
		scanf("%d %d",&x,&y);
		if(x<1000000001 && y<1000000001){
			if(x>y)
			{
				printf(">\n");
			}
			else if(x<y)
			{
				printf("<\n");
			}
			else
			{
				printf("=\n");
			}
		}
		//printf("%d %d\n",x,y);
		counter--;
	}
	return 0;
}